Add fmt check, check, clippy
authorFelix Krull <f_krull@gmx.de>
Wed, 22 May 2019 13:27:27 +0000 (15:27 +0200)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:54 +0000 (12:53 -0400)
rust-bindings/rust/.gitlab-ci.yml
rust-bindings/rust/src/lib.rs

index 1a4e35908064b8141f2390743f1516f382b7e1c9..87ee104cf52a10f44dd9e41c47dcf4877e0968fc 100644 (file)
@@ -32,9 +32,16 @@ publish_ostree-sys:
   when: manual
 
 # ostree
+ostree_fmt:
+  stage
+cargo fmt --package ostree -- --check
+
 ostree:
   stage: build
   script:
+  - cargo fmt -- --check
+  - cargo check ${CURRENT_FEATURES}
+  - cargo clippy ${CURRENT_FEATURES}
   - cargo test --verbose ${CURRENT_FEATURES}
   cache:
     paths:
index 3b60ab73b1c8d2f50bf2a9c9743605bbdbf5066a..b8fc7c0ff87783dd8f162a286f881ac75f0a5c80 100644 (file)
@@ -15,6 +15,7 @@ use glib::Error;
 
 // code generated by gir
 #[allow(unused_imports)]
+#[cfg_attr(rustfmt, rustfmt_skip)]
 mod auto;
 pub use crate::auto::functions::*;
 pub use crate::auto::*;